module ProgramsHelper

  def view_programs
    link_to 'Programs<br />', :controller => 'programs', :action => 'index'
  end

  def create_program
    (image_tag 'add.png') + "&nbsp;" + (link_to 'Program', :controller => 'programs', 
			:action => 'new') if Program.is_creatable_by(current_user)
  end
  
  def show_associated_program(program)
    link_to 'View associated Program', :controller => 'programs', :action => 'show', :id => program
  end

end
